

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_GENERAL_CONTROL_BLOCK_1607649026830'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let button = this.getFieldValue('button');
          
            Blockly.Arduino.definitions_['include_EXT_GENERAL_CONTROL_BLOCK_1607649026830'] = `\n#include "IRremote.h"\n#include "Keymap.h"`;
            Blockly.Arduino.definitions_['define_EXT_GENERAL_CONTROL_BLOCK_1607649026830'] = `IRremote ir(${pin});`;
            Blockly.Arduino.definitions_['setup_EXT_GENERAL_CONTROL_BLOCK_1607649026830'] = ``;
             return  [`ir.getIrKey(ir.getCode(),1) == ${button}`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        